package com.ycl.service.impl;

import com.github.pagehelper.PageHelper;
import com.ycl.mapper.EbOrderMapper;
import com.ycl.model.EbOrder;
import com.ycl.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    private EbOrderMapper ebOrderMapper;

    /**
     * 订单分页查询
     * @param page
     * @param pageSize
     * @return
     */
    @Override
    public List<EbOrder> list(Integer page,Integer pageSize){
        PageHelper.startPage(page,pageSize);
        List<EbOrder> ebOrders = ebOrderMapper.selectByExample(null);
        return  ebOrders;
    }
}
